package com.llp.javaweb.dao;

import com.llp.javaweb.mapper.UserMapper;
import com.llp.javaweb.pojo.User;
import com.llp.javaweb.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @author llp
 * {@code @date} 2022年11月06日21:01
 */

public class UserDao {

    public List<User> selectAllUser() {
        SqlSession sqlSession = SqlSessionUtil.getSqlSession();
        UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        List<User> users = mapper.selectAllUser();
        return users;
    }
}
